package modele.WorldElem;

import java.awt.Color;

import modele.Square;

public class Flooded extends SecondaryState{
	
	private int waterLevel;
	private int timeFlooded;
	
	
	
	
	
	public int getWaterLevel() {
		return waterLevel;
	}

	public void setWaterLevel(int waterLevel) {
		this.waterLevel = waterLevel;
	}

	public Flooded(){
		timeFlooded = 1;
		waterLevel = 1;
	}
	
	@Override
	public int getSecondaryStateValue() {
		return SecondaryState.FLOODED;
	}

	public int getTimeFlooded() {
		return timeFlooded;
	}

	public void setTimeFlooded(int timeFlooded) {
		this.timeFlooded = timeFlooded;
	}

	@Override
	public int getAdditionalAltitude() {
		return waterLevel;
	}

	@Override
	public Color getColor(Square s) {
		return new Color(0,0,s.getAltitude());
	}

	

}
